package com.wanlian.netty.msg.Device;

import com.wanlian.File.StorageItem;
import com.wanlian.json.JsonStringUtil;
import com.wanlian.netty.msg.BaseMsg;
import com.wanlian.netty.msg.MsgType;


/**
 * 删除信息
 */
public class FileDeleteReqMsg extends BaseMsg {
    private StorageItem item;

    public FileDeleteReqMsg(){
        super();
        this.setType(MsgType.DEVICE_STORAGEITEM_DELETE_REQ);
    }

    public StorageItem getItem() {
        return item;
    }

    public void setItem(StorageItem item) {
        this.item = item;
        this.setContent(JsonStringUtil.writeValueAsString(item));
    }
}
